public class ArrayOps
{
   /**
      This method sums up both rows of a two-dimensional array
      (the only parameter to the method) and returns the greater sum.
      @param theArray, a 2-D array of integers
      @return, the greater row sum
   */
   public static int bigSum(int[][] theArray)
   {
      // your work here

      int maxsum=0,sum;
      for(int i=0;i<theArray.length;i++){
         sum=0;
         for(int j=0;j<theArray[i].length;j++){
            sum+=theArray[i][j];
         }
         maxsum=maxsum>sum?maxsum:sum;
      }
      return maxsum;

   }
}